<?php

namespace App\Models\Field;

class DynamicField extends BaseField
{

    public const USER = 'user';

    public static function getFormats($scene = self::BASE_INFO): array
    {
        $baseFormats = [
            'id' => static function ($model) {
                return $model->dynamic_id;
            },
            'user_id',
            'target_id',
            'target_type',
            'type',
            'is_deleted',
            'created_at',
        ];
        $formats = [
            self::USER => $baseFormats,
        ];

        return $formats[$scene] ?? $baseFormats;
    }


}
